-- Config.lua
local Platformer = require("Platformer")
local Data = Platformer.Data

-- 图层定义（渲染顺序）
local TerrainLayer = 0
local PlayerLayer = 1
local ItemLayer = 2

-- 碰撞组定义
local PlayerGroup = Data.groupFirstPlayer
local ItemGroup = Data.groupFirstPlayer + 1
local TerrainGroup = Data.groupTerrain

-- 设置碰撞关系
Data:setShouldContact(PlayerGroup, ItemGroup, true)

return {
    TerrainLayer = TerrainLayer,
    PlayerLayer = PlayerLayer,
    ItemLayer = ItemLayer,

    PlayerGroup = PlayerGroup,
    ItemGroup = ItemGroup,
    TerrainGroup = TerrainGroup
}